<?php
/**
 * @author tangbl
 */
class UAction extends CommonAction {
	
	/**
	 * 中转操作 
	 * hdminId  管理员session
	 * memberId 会员    session
	 */
    public function u(){
    	
		$urls = C("ORDER_URL_CONFIRM");
		$go   = "no";
		
		$orderid = $this->_param("id","intval",0);
		$model   = M("Order");
		$rows    = $model->find($orderid);
		if($rows['id']){
			$ones = $urls["yes"];
			foreach($ones as $k=>$v){
				$url[$k] = $v."/id/".$orderid ;
			}
		}else{
			$url = $urls[$go];
		}
		
		
		/* if(session("memberId")){
			//echo $url['memberId'];exit();
			redirect($url['memberId']);
		}
		if(session("hdminId")){
			//echo $url['hdminId'];exit();
			redirect($url['hdminId']);
		} */
		
		$this->assign("url",$url);
    	$this->display();
    }
}